package com.ala4.oxcafe.dto;

import com.ala4.oxcafe.boot.utils.DetailsHelper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author PING
 * @version 1.0
 * @date 2025/4/14 15:25
 */
@Data
@Schema(description = "审核意见DTO")
public class AuditCommentDTO {

    @Schema(description = "审核意见")
    private String comment;

    @Schema(description = "审核时间")
    private LocalDateTime auditDate;

    @Schema(description = "审核人")
    private String auditUser;

    public AuditCommentDTO(String comment) {
        this.comment = comment;
        this.auditDate = LocalDateTime.now();
        this.auditUser = DetailsHelper.getUserDetails().getNickName();
    }
}
